import { invoke } from "@tauri-apps/api/core";

export async function checkIsInstalled(pkgname: string): Promise<boolean> {
  return await invoke('check_is_installed', { pkgname });
}

export async function checkLaunchApp(pkgname: string): Promise<boolean> {
  return await invoke('check_launch_app', { pkgname });
}

export async function launchLaunchApp(pkgname: string) {
  await invoke('launch_launch_app', { pkgname });
}